<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>



<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
        <meta name="description" content="" />
        <meta name="author" content="" />
        <title>二课材料系统</title>
        <link href="${pageContext.request.contextPath}/admin/css/styles.css" rel="stylesheet" />
        <link href="${pageContext.request.contextPath}/indexFace/css/index_info_table.css" rel="stylesheet" />
        <link href="${pageContext.request.contextPath}/admin/css/card-styles.css" rel="stylesheet" />
        <script src="${pageContext.request.contextPath}/admin/js/all.js"></script>
    </head>
    <body class="sb-nav-fixed">
    	<%@ include file="include/head.jsp" %>
        <div id="layoutSidenav">
        	<%@ include file="include/nav.jsp" %>
            <div id="layoutSidenav_content">
            	<div class="container-fluid px-4">
                    <div class="card mb-4">
                        <div class="card-header">
                            <i class="fas fa-table me-1"></i>
                            通知
                        </div>
                        <div class="card-body">
                            <br>
                            <table id="datatablesSimple" class="infoTable">
                                <thead></thead>
                                <tbody>
                                <c:forEach items="${actInfo.entrySet()}" var="entry">
                                    <c:set var="act" value="${entry.value}"/>
                                    <tr>
                                        <td colspan="4">
                                        <div class="card mb-4">
                                            <div class="card-body">
                                                <div class="card-title" id="activityName">${act.name} 【ID:${act.id}】</div>
                                                <div class="card-content">
                                                    <div class="info-section">
                                                        <div class="info-label">时间范围</div>
                                                        <div class="info-content-container">
                                                            <div id="activityBeginTime" class="info-content">开始时间: ${act.beginTime}</div>
                                                            <div id="activityEndTime" class="info-content">结束时间: ${act.endTime}</div>
                                                        </div>
                                                    </div>

                                                    <div class="info-section">
                                                        <div class="info-label">活动类型</div>
                                                        <div class="info-content-container">
                                                            <div id="activityType" class="info-content">${act.type}</div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    </tr>
                                </c:forEach>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <%@ include file="include/foot.jsp" %>
			</div>
        </div>
        <script src="${pageContext.request.contextPath}/admin/js/bootstrap.min.js"></script>
        <script src="${pageContext.request.contextPath}/admin/js/scripts.js"></script>
        <script src="${pageContext.request.contextPath}/admin/js/simple-datatables@latest.js"></script>
        <script src="${pageContext.request.contextPath}/admin/js/datatables-simple-demo.js"></script>
    </body>
</html>